package com;

import com.aop.BusiessClass;
import com.aop.MainCondifAop;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.context.annotation.ComponentScan;

@SpringBootApplication
@ComponentScan(value = "com.*")
public class ProviderApplication {

	private static Logger logger = LoggerFactory.getLogger(ProviderApplication.class);

	public static void main(String[] args) {

		ConfigurableApplicationContext context = SpringApplication.run(ProviderApplication.class, args);
		String[] beanDefinitionNames = context.getBeanDefinitionNames();
		for (String name:beanDefinitionNames) {
			logger.info("+++++++{}+++++++", name);
		}

	}

}
